//Number lines from stdin.
package main

import (
	"os"
	"fmt"
	"flag"
	"bufio"
)

var start = flag.Int("s", 1, "Start numbering from here")

func main() {
	flag.Parse()
	in, out := bufio.NewReader(os.Stdin), bufio.NewWriter(os.Stdout)
	var err os.Error
	var line []byte

	for lno := *start; err == nil; lno++ {
		line, err = in.ReadSlice('\n')
		fmt.Fprintf(out, "%d: %s", lno, line)
	}
	out.Flush()
}
